namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0129 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.SysApprovePath", "IsForNotice", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePathSimulate", "IsForNotice", c => c.Boolean(nullable: false));
            DropColumn("dbo.SysApprovePath", "IsApproveAble");
            DropColumn("dbo.SysApprovePath", "IsForwardable");
            DropColumn("dbo.SysApprovePath", "IsRejectable");
            DropColumn("dbo.SysApprovePath", "IsPendable");
            DropColumn("dbo.SysApprovePath", "IsSendBackable");
            DropColumn("dbo.SysApprovePath", "IsLockable");
            DropColumn("dbo.SysApprovePath", "AmountMin");
            DropColumn("dbo.SysApprovePath", "AmountMax");
            DropColumn("dbo.SysApprovePathSimulate", "IsPassApproveLine");
            DropColumn("dbo.SysApprovePathSimulate", "IsPendable");
            DropColumn("dbo.SysApprovePathSimulate", "IsLockable");
            DropColumn("dbo.SysApprovePathSimulate", "IsSkip");
        }
        
        public override void Down()
        {
            AddColumn("dbo.SysApprovePathSimulate", "IsSkip", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePathSimulate", "IsLockable", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePathSimulate", "IsPendable", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePathSimulate", "IsPassApproveLine", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePath", "AmountMax", c => c.Decimal(precision: 18, scale: 2));
            AddColumn("dbo.SysApprovePath", "AmountMin", c => c.Decimal(precision: 18, scale: 2));
            AddColumn("dbo.SysApprovePath", "IsLockable", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePath", "IsSendBackable", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePath", "IsPendable", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePath", "IsRejectable", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePath", "IsForwardable", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApprovePath", "IsApproveAble", c => c.Boolean(nullable: false));
            DropColumn("dbo.SysApprovePathSimulate", "IsForNotice");
            DropColumn("dbo.SysApprovePath", "IsForNotice");
        }
    }
}
